/*
 * @Description: getUserList Api
 * @Author: zhaokun
 * @Date: 2022-01-01 22:06:44
 * @LastEditTime: 2022-01-27 16:12:39
 * @FilePath: \user\api\internal\logic\getUserListLogic.go
 */
package logic

import (
	"context"

	"user/api/internal/svc"
	"user/api/internal/types"

	"github.com/tal-tech/go-zero/core/logx"
)

type GetUserListLogic struct {
	logx.Logger
	ctx    context.Context
	svcCtx *svc.ServiceContext
}

func NewGetUserListLogic(ctx context.Context, svcCtx *svc.ServiceContext) GetUserListLogic {
	return GetUserListLogic{
		Logger: logx.WithContext(ctx),
		ctx:    ctx,
		svcCtx: svcCtx,
	}
}

func (l *GetUserListLogic) GetUserList(req types.GetRequest) (resp *types.GetResponse, err error) {
	// todo: add your logic here and delete this line
	userList := &types.GetResponse{}
	userList.Code = "200"
	userList.Message = "success"
	userList.Data.Name = "zkzkzk123"

	return userList, nil
}
